package file;

import java.io.File;
import java.io.IOException;

public class Test1 {
    public static void main(String[] args) throws IOException {
        //在当前目录下创建100个文件 名字test1-test100.txt
        for (int i=1;i<101;i++) {
            File file = new File("./test" + i + ".txt");
            if (!file.exists()) {
                file.createNewFile();
                System.out.println("test" + i + ".txt");
            }
        }


    }
}
